<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="columns">
  <div id="centercol">
    <?php if (have_posts()) : ?>
    <div class="box post">
      <div class="content">
        <div class="post-block">
          <div class="post-title full">
            <h1>您搜索结果: <span><?php echo $s; ?></span></h1>
          </div>
        </div>
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
    <?php while (have_posts()) : the_post(); ?>
    <div class="box post" id="post-<?php the_ID(); ?>">
      <div class="content">
        <div class="post-title">
          <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
            <?php the_title(); ?>
            </a></h2>
        </div>
        <!--/post-title -->
             
      </div>
      <!--/content -->
    </div>
    <!--/box -->
    <?php endwhile; ?>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    <?php /*
        <ul>
			<li><?php next_posts_link('&laquo; Older Entries') ?></li>
			<li><?php previous_posts_link('Newer Entries &raquo;') ?></li>
		</ul>
		*/ ?>
    <?php else : ?>
    <div class="box post">
      <div class="content">
        <div class="post-title">
          <h1>你搜索的关键字为: '<span><?php echo $s; ?></span>'</h1>
        </div>
        <p style="padding:20px 0 0 0;">你查找的内容不存在或已经删除，有什么疑问请联系客服解决.</p>
      </div>
    </div>
    <?php endif; ?>
  </div>
  <!--/centercol -->
  
  <div class="clr"></div>
</div>
<!--/columns -->
<?php get_footer(); ?>
